<template>
  <div class=" paggs">
    <!-- 头部导航++++++++++++++++++++++ -->
    <Navv></Navv>
    <!-- 头部导航=============== -->


    <el-row :gutter="20">

      <el-col :span="4">
        <div class="leftbox">
          <Sidebarts defaultActive="3"></Sidebarts>
        </div>
      </el-col>

      <el-col :span="20">
        <div class="rightbox">

          <div class="righbox1">
            <el-tabs v-model="activeName" @tab-click="handleClick">
              <el-tab-pane label="客户端资源" name="first"></el-tab-pane>
              <!-- <el-tab-pane label="游戏配置" name="second"></el-tab-pane>
              <!-- <el-tab-pane label="客户端资源" name="second"></el-tab-pane>
              <el-tab-pane label="使用手册" name="third"></el-tab-pane> -->
            </el-tabs>
          </div>

          <div class="righbox2 ">

            <div class="row">
              <div class="center bota cursor">
                <div class="center mr_8">
                  <img class="bota_img" src="@/assets/images/add.png" />
                </div>
                <div class="center">上传</div>
              </div>

              <div class="  center bota cursor">
                <div class="center">远程下载</div>
                <div class="center ">
                  <img class="bota_img2" src="@/assets/images/xia2.png" />
                </div>
              </div>

              <div class="  center bota cursor">
                <div class="center">新建</div>
                <div class="center ">
                  <img class="bota_img2" src="@/assets/images/xia2.png" />
                </div>
              </div>

              <div class="center bota cursor">
                <div class="center">文件查找</div>
              </div>


              <div class="  center bota cursor">
                <div class="center">收藏夹</div>
                <div class="center ">
                  <img class="bota_img2" src="@/assets/images/xia2.png" />
                </div>
              </div>


              <div class="center bota cursor">
                <div class="center mr_8" style="margin-top: 2px;">
                  <img class="bota_img" src="@/assets/images/tb.png" />
                </div>
                <div class="center">数据同步</div>
              </div>


              <div class="center bota cursor">
                <div class="center mr_8">
                  <img style="width: 27px;height: 22px;" src="@/assets/images/zd.png" />
                </div>
                <div class="center">终端</div>
              </div>


              <div class="center bota cursor">
                <div class="center mr_8">
                  <img style="width: 24px;height: 24px;" src="@/assets/images/gml.png" />
                </div>
                <div class="center">/ 根目录</div>
              </div>

              <div class="center botb">
                <div class="center mr_8">
                  <img style="width: 25px;height: 21px;" src="@/assets/images/sx.png" />
                </div>
                <div class="center cursor" >重启</div>
                <div class="center" style="margin-left: 20px;">
                  <img class="bota_img2" src="@/assets/images/xia2.png" />
                </div>
              </div>

            </div>

            <el-divider></el-divider>

            <!-- 表格 -->
            <el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%;margin-top: 30px;"
              @selection-change="handleSelectionChange">
              <el-table-column type="selection" width="55">
              </el-table-column>

              <el-table-column prop="filename" label="文件名">
              </el-table-column>

              <el-table-column prop="authority" label="权限/所有者">
              </el-table-column>

              <el-table-column prop="sziee" label="大小" show-overflow-tooltip width="120">
              </el-table-column>

              <el-table-column prop="datee" label="修改时间" show-overflow-tooltip width="150">
              </el-table-column>

              <el-table-column prop="remark" label="备注" show-overflow-tooltip>
              </el-table-column>

              <el-table-column fixed="right" label="操作" width="300">
                <template slot-scope="scope">
                  <el-button @click="handleClick(scope.row)" type="text" size="small">打开</el-button>
                  <el-button type="text" size="small">复制</el-button>
                  <el-button type="text" size="small">剪切</el-button>
                  <el-button type="text" size="small">重命名</el-button>
                  <el-button type="text" size="small">权限</el-button>
                  <el-button type="text" size="small">压缩</el-button>
                  <el-button type="text" size="small">删除</el-button>
                </template>
              </el-table-column>
            </el-table>
          </div>

        </div>
      </el-col>
    </el-row>




  </div>


</template>

<script>
  import Navv from "@/components/Navv";
  import Sidebarts from "@/components/Sidebarts";
  export default {
    components: {
      Navv,
      Sidebarts
    },
    data() {
      return {
        circleUrl: "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png",
        activeName: 'first',
        tableData: [{
            filename: '文件名1',
            authority: '权限所有1',
            sziee: '128',
            datee: '2023-10-26 11:23:23',
            remark: '备注1'
          },

          {
            filename: '文件名1',
            authority: '权限所有1',
            sziee: '128',
            datee: '2023-10-26 11:23:23',
            remark: '备注1'
          },

          {
            filename: '文件名1',
            authority: '权限所有1',
            sziee: '128',
            datee: '2023-10-26 11:23:23',
            remark: '备注1'
          },

        ],
        multipleSelection: []

      }
    },
    methods: {

      toUrl(url) {
        console.log('aaa')
        this.$router.push({
          path: url
        })
      },
      handleOpen() {

      },
      handleClose() {

      },
      handleClick() {

      },
      handleSelectionChange() {

      },
      skip(url) {
        this.$router.replace({
          path: url
        })
      },


    }
  };
</script>
<style scoped lang="scss">
  .paggs {
    background: #F6F7FB;
    height: 100%;
  }

  .leftbox {
    padding-top: 50px;
    z-index: 100px;
    background: #1B1E28;
    height: calc(90vh);
    // height: 100%;
  }

  .rightbox {
    // background: #fff;

  }

  .righbox1 {
    height: 54px;
    background: #fff;
    border-radius: 10px;
    margin-right: 20px;
    margin-top: 20px;
    background: #fff;
    padding: 0px 40px 10px 20px;
  }

  .righbox2 {
    height: calc(80vh);

    background: #fff;
    border-radius: 10px 10px 0 0;
    margin-right: 20px;
    margin-top: 20px;
    background: #fff;
    padding: 20px;
  }

  .righbox2 {}



  // ::v-deep .el-menu-item.is-active {
  //   background: #779EFE !important;

  // }

  // .item_nav {
  //   margin-bottom: 20px !important;
  // }

  // ::v-deep .el-tabs__item {
  //   font-size: 18px;
  //   color: black;
  //   font-weight: bold;
  // }

  // ::v-deep .el-tabs__item.is-active {
  //   color: #409EFF;
  // }

  .bota {
    margin-right: 10px;
    width: 122px;
    height: 34px;
    background: #363D56;
    border-radius: 6px;
    font-size: 16px;
    color: #fff;
    font-weight: bold;
  }

  .botb {
    margin-right: 10px;

    width: 155px;
    height: 34px;
    background: #EF4F19;
    border-radius: 6px;
    font-size: 16px;
    color: #fff;
    font-weight: bold;
  }

  .bota_img {
    width: 16px;
    height: 16px;
  }

  .bota_img2 {
    margin-top: 3px;
    width: 14px;
    height: 8px;
    margin-left: 8px;
  }
</style>
